package ex4.dy;

/**
 * @author: knowno
 * @create: 2025-09-12 15:59
 * @Version 1.0
 **/
public class TestZoo {
    public static void main(String[] args) {

        Lion lion = new Lion("辛巴");
        Tiger tiger = new Tiger("泰龙");

        //这里实际调用方法，传递的是子类对象
        Zoo.show(lion);
        Zoo.show(tiger);

    }
}
